package band.wukong.practice.webservice.kh.sample01;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.xml.ws.Endpoint;

/**
 * 通过JAX-WS提供的Endpoint来发布webservice
 *
 * wsimport -keep -verbose -d D:/ -encoding utf-8 http://localhost:9000/wkp/webservice/kh/sample01?wsdl
 *
 * @author wukong(wukonggg@139.com)
 */
public class SomebodyServer {

    private static final Logger logger = LoggerFactory.getLogger(SomebodyServer.class);

    public static void main(String[] args) throws Exception {
        Endpoint.publish(SomebodyConst.SERVICE_URL, new SomebodyServiceImpl());
        logger.info("Server started.");
        logger.info("WSDL = " + SomebodyConst.SERVICE_WSDL);
    }

}
